home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / othergnu / indent~1.zoo / makefile < prev    next >
Encoding:
Makefile  |  1992-08-20  |  4.5 KB  |  173 lines

  1. # Generated automatically from zmakefile.in by configure.
  2. # Makefile template for GNU indent
  3. # Copyright (C) 1992, Free Software Foundation, Inc.
  4. #
  5. # This file is part of GNU indent.
  6. #
  7. # GNU indent is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. # GNU indent is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. # You should have received a copy of the GNU General Public License
  16. # along with GNU indent; see the file COPYING.  If not, write to
  17. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #### Start of system configuration section. ####
  20.  
  21. srcdir = .
  22. VPATH = .
  23.  
  24. CC = gcc -O2 -fstrength-reduce
  25.  
  26. INSTALL = /usr/bin/install -c
  27. INSTALL_PROGRAM = $(INSTALL)
  28. INSTALL_DATA = $(INSTALL) -m 644
  29.  
  30. AWK = awk
  31. MAKEINFO = makeinfo
  32.  
  33. # Used only for making distributions.  If you don't have GNU tar,
  34. # you must change the make command below in the `tarfile:' section.
  35. TAR = tar
  36.  
  37. DVITOGHOSTSCRIPT = dvi2ps indent.dvi > indent.ps
  38. CTAGS = etags
  39.  
  40. CFLAGS = -g
  41. LDFLAGS = -g -s
  42.  
  43. # C compiler -D options.
  44. DEFS =  -DHAVE_UNISTD_H=1 -DDIRENT=1
  45.  
  46. # Where to install indent and its documentation.
  47. prefix = /usr/local
  48. exec_prefix = /usr/local
  49. bindir = $(exec_prefix)/bin
  50. infodir = ${prefix}/info
  51.  
  52. #### End of system configuration section. ####
  53.  
  54. SHELL =   f:/mint/bin/sh
  55. SRC =      indent.c io.c lexi.c parse.c pr_comment.c args.c globs.c \
  56.       backup.c memcpy.c
  57. OBJ =      indent.o io.o lexi.o parse.o pr_comment.o args.o globs.o \
  58.       backup.o 
  59. HEADERS = indent.h sys.h version.h backup.h
  60. MAN =      indent.texinfo texinfo.tex
  61. NOTES =   ChangeLog OChangeLog Projects
  62.  
  63. CONFIG = configure.in configure CONF-README
  64.  
  65. MANJUNK = indent.dvi indent.cp indent.cps indent.aux indent.dlog \
  66. indent.fn indent.fns indent.ky indent.kys indent.log indent.pg   \
  67. indent.pgs indent.toc indent.tp indent.tps indent.vr indent.vrs indent.ps 
  68.  
  69. # What to put in a distribution
  70. TARFILES = ${SRC} Makefile zmakefile.in ${MAN} indent.info ${HEADERS} \
  71. ${NOTES} indent.gperf ${CONFIG} indent.1
  72. RELEASEFILES = RELEASE-NOTES README
  73.  
  74.  
  75. # Make the program and documentation
  76. #
  77. all: indent.ttp indent.info
  78.  
  79. indent.ttp: ${OBJ}
  80.     ${CC} -o $@ ${LDFLAGS} ${OBJ}
  81.  
  82. .c.o:
  83.     ${CC} -c ${CFLAGS} ${CPPFLAGS} ${DEFS} $<
  84.  
  85. ${OBJ}: indent.h sys.h Makefile
  86. args.o: version.h
  87. backup.o: backup.h sys.h
  88.  
  89. tags: ${SRC}
  90.     ${CTAGS} -t ${SRC} ${HEADERS}
  91. TAGS: tags
  92.  
  93.  
  94. # Documents
  95. #
  96. indent.ps: indent.dvi
  97.     ${DVITOGHOSTSCRIPT}
  98.  
  99. indent.dvi: indent.toc
  100.     tex ${srcdir}/indent.texinfo
  101.  
  102. indent.toc: ${MAN}
  103.     tex ${srcdir}/indent.texinfo
  104.  
  105. indent.info: ${MAN}
  106.     ${MAKEINFO} ${srcdir}/indent.texinfo
  107.  
  108.  
  109.  
  110. # Installation of indent
  111. #
  112. install: all
  113.     ${INSTALL_PROGRAM} indent ${bindir}/indent
  114.     ${INSTALL_DATA} ${srcdir}/indent.info ${infodir}/indent.info
  115.  
  116.  
  117. # Cleaning up
  118. #
  119. clean: mostlyclean
  120.     rm -f ${MANJUNK} TAGS .depend
  121.  
  122. # Clean up the .o files, leaving the man stuff
  123. mostlyclean:
  124.     rm -f ${OBJ} core indent
  125.  
  126. # Clean up tar files, indent-generated backup files, and indent
  127. # subdirectories
  128. realclean: clean
  129.     rm -f *.BAK
  130.     rm -f indent-*.tar*
  131.     rm -rf indent-*
  132.  
  133.  
  134. # Create a distribution file
  135. #
  136. DISTDIR = indent-${VERSION}
  137. TARFILE = indent-${VERSION}.tar
  138. DISTFILE = ${TARFILE}.Z
  139. AWKVERSION = ${AWK} '/define VERSION_STRING/ {printf "%s", \
  140.                      substr($$NF, 1, length($$NF) - 1)}' version.h
  141.  
  142.  
  143. dist: ${TARFILES}
  144.     @export VERSION ; VERSION=`${AWKVERSION}` ; \
  145.     ${MAKE} -f zmakefile tarfile
  146. #    @unset VERSION
  147.  
  148. tar: dist
  149.  
  150. # NOTE: GNU tar has a compress option, -z, used below.  If you
  151. # do not have GNU tar, replace the tar line below with the following
  152. # two lines:
  153. #    tar -c -h -f ${TARFILE} ${DISTDIR}
  154. #    compress ${TARFILE}
  155. tarfile:
  156.     @test -f README-${VERSION} || (echo Missing file README-${VERSION}; exit 1)
  157.     @test -f RELEASE-NOTES-${VERSION} || (echo Missing file RELEASE-NOTES-${VERSION}; exit 1)
  158.     @echo Making compressed tar file, indent ${VERSION}
  159.     @echo
  160.     @rm -f README
  161.     @ln -s README-${VERSION} README
  162.     @rm -f RELEASE-NOTES
  163.     @ln -s RELEASE-NOTES-${VERSION} RELEASE-NOTES
  164.     @rm -rf ${DISTDIR}
  165.     @rm -f ${DISTFILE}
  166.     @mkdir ${DISTDIR}
  167.     @cd ${DISTDIR} ; for i in ${TARFILES} ${RELEASEFILES} ; do ln -s ../$$i . ; done
  168.     @${TAR} -c -v -h -z -f ${DISTFILE} ${DISTDIR}
  169.     @rm -rf ${DISTDIR}
  170.  
  171.